package com.collectplus.express.model;

import java.io.Serializable;

import droid.frame.utils.lang.Str;

/**
 * Created by joker on 2018/4/18.
 * 同城计算价格规则对象
 */
public class SameCityPriceBean implements Serializable {

    private String id;
    private String city;//城市编码 110100
    private double continueDistance;//超出每公里的价格
    private double continueWeight;//超出每公斤的价格
    private double startDistance;//起始距离
    private double startPrice;//起始价格
    private double startWeight;//起始重量
    private int status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public double getContinueDistance() {
        return continueDistance;
    }

    public void setContinueDistance(double continueDistance) {
        this.continueDistance = continueDistance;
    }

    public double getContinueWeight() {
        return continueWeight;
    }

    public void setContinueWeight(double continueWeight) {
        this.continueWeight = continueWeight;
    }

    public double getStartDistance() {
        return startDistance;
    }

    public void setStartDistance(double startDistance) {
        this.startDistance = startDistance;
    }

    public double getStartPrice() {
        return Double.parseDouble(Str.roundByScale(startPrice, 1));
    }

    public void setStartPrice(double startPrice) {
        this.startPrice = startPrice;
    }

    public double getStartWeight() {
        return startWeight;
    }

    public void setStartWeight(double startWeight) {
        this.startWeight = startWeight;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
